package com.java01.lang.url;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

public class OpenURLInputStream {

	public static void main(String[] args) {
		InputStream is = null;
		try {
			URL url = new URL("http://www.java01.com");
			is = url.openStream();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (is != null) {
				try {
					is.close();
				} catch (IOException e) {}
			}
		}
	}
}
